﻿using System;
using System.Data;

namespace MyApp.IRepository
{
    public interface IBaseRepository<TEntity> where TEntity : class, new ()
    {
        public int Insert(TEntity entity);

        public int Delete(TEntity entity);

        public int Update(TEntity entity);

        public TEntity QuerySingleByPK(string PK);

        public DataTable GetDataTable(string sql);

        public int ExecuteCommand(string sql); 
    }
}
